<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Product extends ORM {
    protected $_rules = array(
        'title' => array(
            'not_empty'  => NULL,
            'min_length' => array(1),
            'max_length' => array(255),
            'regex'      => array('/^[-\pL\pN_.]++$/uD'),
        ),
        'description' => array(
            'not_empty'  => NULL,
            'min_length' => array(1),
            'max_length' => array(100000),
            'regex'      => array('/^[-\pL\pN_.]++$/uD'),
        ),
        'creation_date' => array(
        ),
        'modified_date' => array(
        ),
        'price' => array(
        ),
    );
}